{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/ads/index')}">banner管理</a></li>
            <li class="layui-this">添加banner</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/ads/add')}" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">图片</label>
                        <div class="layui-input-block">
                            <input type="text" name="image" value="" placeholder="（选填）请上传图片" class="layui-input layui-input-inline" id="thumb">
                            <button type="button" class="layui-btn" id="one-image-upload">
                                <i class="layui-icon">&#xe67c;</i>上传图片
                            </button>
                        </div>
                        <div class="layui-input-block" style="display:none" id="layui-img">
                            <img id="show-img" src="" width="80px" height="80px"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">关联id</label>
                        <div class="layui-input-block">
                            <input type="text" placeholder="请输入关联id" class="layui-input layui-input-inline" name="link_id">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">类型选择</label>
                        <div class="layui-input-block">
                            <select name="flag">
                                <option value="0">全部</option>
                                <option value="1">商品</option>
                                <option value="2">文章</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}